package com.cloudwise.monitoring_system.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Reisen
 * @description: kafka消息实体类
 * @date 2021/5/18 10:34
 */
@Data
public class Message implements Serializable {
        private static final long serialVersionUID = 430622409003434493L;
        private Long id;    //id
        private String msg; //消息
        private Date sendTime;  //时间戳

        @Override
        public String toString() {
                return "Message{" +
                        "id=" + id +
                        ", msg='" + msg + '\'' +
                        ", sendTime=" + sendTime +
                        '}';
        }
}
